<html>
<head>
	<meta charset="UTF-8">
	<title>前台首页</title>
	<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
</head>
<body>
<div class="container-fluid">
<!--nav开始-->
<ul class="nav nav-tabs">
  <li role="presentation" class="active"><a href="index.php?c=index&m=index">首页</a></li>
  <li role="presentation"><a href="index.php?c=index&m=listall&tid=1">电影专栏</a></li>
  <li role="presentation"><a href="index.php?c=index&m=listall&tid=2">电视剧专栏</a></li>
  <li role="presentation"><a href="index.php?c=index&m=listall&tid=3">动画片专栏</a></li>
  <li role="presentation"><a href="index.php?c=index&m=listall&tid=9">原创专栏</a></li>
  <li role="presentation"><a href="">           </a></li>
  <li role="presentation"><a href="">           </a></li>
  <li role="presentation"><a href="">           </a></li>
  <li role="presentation"><a href="">           </a></li>
    <li role="presentation">
   <form class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input type="text" class="form-control" placeholder="Search">
  </div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>
</li> 
   <li role="presentation"><a href="index.php?c=index&m=login">登录</a></li>
  <li role="presentation"><a href="index.php?c=index&m=reguser">注册</a></li>

  <li role="presentation">
   <a href="">欢迎您访问本网站</a>
</li>
</ul>
<!--nav结束-->	
<div class="row">
  <div class="col-md-12">

    <div class="row">
      <div class="col-md-12">
      <h2><?php 
      switch ($data['allvideos'][0]['tid']) {
        case '1':
          echo "电影";
          break;
        case '2':
          echo "电视剧";
          break;
        case '3':
          echo "动画片";
          break;
        case '9':
          echo "原创";
          break;
        }

       ?>专栏所有视频</h2>
        <ul class="list-inline row text-center">
        <?php 
        foreach ($data['allvideos'] as $row) {
         ?>
        <li class="col-md-2">
          <img src="posters/<?php  echo $row["pic"];?>" class="img-rounded" width="180" height="150">

          <p><a href="index.php?c=index&m=show&vid=<?php echo $row['vid'];?>"><?php echo $row["videoname"];?></a></p>
        </li>
        <?php 
        }
         ?>
        </ul>
      </div>

    </div>

    

    </div>
  </div>


</div>

<div> <h4 align="center">视频网站&copy;开发小组：计算机科学与技术14007-14008班</h4></div>
</div>
</body>
</html>